﻿#ifndef CMDTBEXPORTDATA_H
#define CMDTBEXPORTDATA_H
#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    class CmdTbExportData : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdTbExportData();
        ~CmdTbExportData();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setWindowId(int windowId) { m_windowId = windowId; }
        void setFilePath(QString filePath) { m_filePath = filePath; }
        void setDelimiter(QString delimiter) { m_delimiter = delimiter; }
        void setOnlyVisible(int onlyVisible) { m_onlyVisible = onlyVisible; }
    
    private:
        int m_windowId;
        QString m_filePath;
        QString m_delimiter;
        int m_onlyVisible;

    };
}

#endif // CMDTBEXPORTDATA_H


